﻿#include "QCefBrowserSetting.h"

//////////////////////////////////////////////////////////////////////////
//
QCefBrowserSetting* QCefBrowserSetting::ms_instance = nullptr;


//////////////////////////////////////////////////////////////////////////
//
QCefBrowserSetting::QCefBrowserSetting()
{
    QCEF_DEBUG();

    init();

    //保存第一个实例
    if (ms_instance == nullptr)
    {
        ms_instance = this;
    }
}

QCefBrowserSetting::~QCefBrowserSetting()
{
    QCEF_DEBUG();

    //
    if (ms_instance == this)
    {
        ms_instance = nullptr;
    }
}

int QCefBrowserSetting::init()
{
    QCEF_DEBUG();

    m_cefBrowserSettings.background_color = 0;
    m_cefBrowserSettings.windowless_frame_rate = 30;

    return 0;
}
